<% if (data.length) {%>
  <% for(var item in data) {%>
    <div class="search-result_items_i_w">
      <div class="search-result_items_i">
        <div class="search-result_item_left">
          <a href="#offer<%= data[item].offer.offer_id %>"><img src="/s3/foto/<%= data[item].user.fotodir %>/110x110.png" /></a>
          <a class="search-result_item_fav" href="#">В закладки</a>
        </div>
        <div class="search-result_item_right">
          <div class="search-result_item_price"><%= data[item].offer.price %></div>
          <div class="search-result_item_name"><a href="#offer<%= data[item].offer.offer_id %>"><%= data[item].user.name %></a></div>
          <div class="profile_info">
            <span class="profile_info_old"><%= data[item].user.age %></span>
            <span class="profile_info_location"><%= Math.round(data[item].geo.distance) %></span>
          </div>
    
          <span class="profile_info_rate"><%= data[item].user.level %></span>
          <span class="profile_info_status"><%= data[item].offer.title %></span>
          <div class="search-result_item_descrition">
            <%= data[item].offer.info %>
          </div>
    
        </div>
      </div>
    </div>
    <% if (i==0) {%>
        <div class="search-result_items_i_w">
          <div class="search-result_items_i __notfound">
            <div class="search-result_item_right">
              <div class="search-result_item_name">Не нашли кого искали?</div>
              <p><button type="button" class="button-success">Создать заявку</button></p>
            </div>
          </div>
        </div>
    <% } %>              
  <% } %>
<% } else { %>
  <div>Ничего не найдено.</div>
<% } %>